It must also be divisible by the sector size (Usualy 512) due to a bug in the WorkBench format code.
For each partition select Change. Check the MaxTransfer and DMAMask values. Ensure that the number of reserved blocks is 2 and 0 respectively. Also ensure that you have selected AFS\01 as the filesystem. The automount flag should also be set. Click on OK.
Now check the number of buffers you have allocated to each partition.
When you have done all AFS partitions click on OK.
Save changes to the drive. Exit and reboot.
Note that there is one problem that this will not solve. It is possible that the RDB is not big enough to hold AFS. To check look at the list of AFS in the L: directory. Now go back into HDToolbox. Select Change Drive Type. Select the appropriate drive type. Select edit old. Perform the following calculation :-
1024 * BLOCK_PER_CYLINDERThis value should be greater than the size of AFS. If it is not you have problems. You are going to need to reformat you whole drive so backup your data first.
Now start HDToolbox select the drive. Select Change Drive type. Select the appropriate drive type. Now double the blocks per track, double the blocks per cylinder and half the number of cylinders (round down). If there is still not enough space repeat. Click on OK. Now double click on the new/edited drive type. When finished you will have to repartition your drive, reformat and the restore your data.
Note AFS typically stores MORE data on a disk than FFS. FFS used a whole block for each file in a directory. It also uses "extension" blocks for larger files. AFS does this with a few bytes (Depend on name length).
Kirk Strauser has written some scripts to make this easier. They are available on AmiNet :-
disk/misc/RolloverTools.lhaPlease do not ask FLD for support on these scripts.
aminet: disk/misc/Inhibit.lha FTP: ftp.flevel.co.uk:/pub/afs/contrib/Inhibit.lhaPlease do not ask FLD for support on this program.
This problem also occurs if the partition name and label are the same.
This is not a fault with AFS. The device driver should handle this problem itself.
The solution is to set the memory type that AFS, or FFS, will use for its buffers. Unfortunately Commodore did not add this feature to HDToolBox. You can only do this with RDPrep. This is available on AmiNet and FLD's FTP size :-
aminet: disk/misc/rdp391.lha ftp: ftp.flevel.co.uk:pub/rdp/rdp391.lhaGo to the partition screen. Select advanced mode and click on BufMemType until CHIP appears. Do the for all partitions on all disks connected to this device. Don't forget to save changes to the drive. Technically this change is needed for ALL filesystems...
AFS Should now work correctly !